/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef GEN_PROCESSOR_INTERFACE_H
#define GEN_PROCESSOR_INTERFACE_H

#include <device_tree/base.h>

namespace dev::gen {

class MC_API Processor : public mc::engine::interface<Processor> {
public:
    MC_INTERFACE("bmc.dev.Processor")

    property<std::string> ProcessorType;     /// 处理器类型
    property<uint8_t>     Id;                ///< Id
    property<uint8_t>     SystemId;          ///< 系统Id
    property<uint8_t>     Presence;          ///< 在位状态
    property<std::string> InstructionSet;    ///< 指令集
    property<std::string> Architecture;      ///< 芯片架构
    property<std::string> Manufacturer;      ///< 厂商
    property<std::string> Family;            ///< 处理器家族
    property<std::string> Model;             ///< 型号
    property<std::string> PartNumber;        ///< 部件号
    property<std::string> SerialNumber;      ///< 序列号
    property<std::string> FirmwareVersion;   ///< 固件版本
    property<std::string> SocketDesignation; ///< 插槽型号
    property<std::string> Location;          ///< 位置
};
} // namespace dev::gen

#endif // GEN_PROCESSOR_INTERFACE_H